<%@include file="/pages/common/commons.jsp"%>
<html>
<head>
<title>闲你妹-登录</title>
<link type="text/css" rel="stylesheet" href="${static_domain}/scripts/beeTips/jquery.beeTips.css?v=${version}" />
<script type="text/javascript" src="${static_domain}/scripts/beeTips/jquery.beeTips.js?v=${version}"></script>
<script type="text/javascript" src="${static_domain}/scripts/jquery.form.js?v=${version}"></script>
<script type="text/javascript">
	$j(function() {
		var vitems = eval("(" + '${vitems}' + ")");
		
		$j("#loginForm").beeTips({initVals: vitems});

		$j("#loginForm").ajaxForm({
			type : 'POST',
			dataType : 'json',
			beforeSubmit : validate,
			success : function(result, status) {
				if (result.result != null) {
					if (result.result == 0) {
						window.location.href = result.lastUrl;
					} else if (result.result == 3 || result.result == 2) {
						$j("#loginForm").beeWarn(result.errors);
					}
					if (result.msg != null) {
						sAlert(result.msg);
					}
				} else {
					sAlert("返回结果异常");
				}
			}
		});

		function validate(formData, jqForm, options) {
			return $j("#loginForm").beeCheck();
		}
	});
</script>
</head>
<body>
	<!--content bengin -->
	<div class="content">
		<p class="content-top"></p>
		<div class="content-bg">
			<div>
				<form id="loginForm" autocomplete="off" action="loging.json" method="POST" spellcheck="false" enctype="application/x-www-form-urlencoded">
					<div class="loading-page-denglu">
						<span class="loading fLeft">登录</span>
						<span class="loading-word fRight">
							还没注册账号吗？<em><a href="register.htm" style="display: inline;color: black;line-height: 24px;">立即注册</a></em>
						</span>
					</div>
					<ul class="form_fields">
						<li>
							<label for="account">登录名：</label>
							<input id="account" type="text" type="text" name="loginName">
						</li>
						<li>
							<label for="pwd">登录密码：</label>
							<input id="pwd" type="password" maxlength="12" name="memPwd">
							<em>忘记密码</em>
						</li>
						<li class="content-group-li">
							<label for="code_input">验证码：</label>
							<input id="code_input" class="user-input-0407 text-remove fLeft" type="text" maxlength="4" name="captcha" />
							<div class="vcodeImage">
								<img id="vimg" class="hand" src="${http_domain}/captcha" onclick="changeImage(this);" />
							</div>
						</li>
						<li><input type="submit" class="loading-botton" value="登录"></li>
					</ul>
					<div class="loading-lh">
						<span>联合登录</span>
						<a href="federatedLogin.htm?type=1"><img src="/images/laoding_20.jpg" width="103" height="24" /></a>
						<a href="federatedLogin.htm?type=2"><img src="/images/laoding_23.jpg" width="103" height="24" /></a>
					</div>
				</form>
			</div>
		</div>
		<p class="content-bottom"></p>
	</div>
	<!-- content end-->
</body>
</html>
